package com.jeecg.o2o.torder.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.jeecgframework.poi.excel.annotation.Excel;

import com.jeecg.o2o.statusbar.entity.StatusbarEntity;

/**   
 * @Title: Entity
 * @Description: 全局订单不区分商家
 * @author onlineGenerator
 * @date 2019-05-30 14:57:33
 * @version V1.0   
 *
 */
@Entity
@Table(name = "torder", schema = "")
@SuppressWarnings("serial")
public class TorderEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.Integer id;
	/**商户id*/
	@Excel(name="商户id",width=15)
	private java.lang.Integer restaurantid;
	/**订单关联人id*/
	@Excel(name="订单关联人id",width=15)
	private java.lang.Integer userid;
	/**创建订单下单时间*/
	@Excel(name="创建订单下单时间",width=15,format = "yyyy-MM-dd")
	private java.util.Date createdate;
	/**订单详情id*/
	@Excel(name="订单详情id",width=15)
	private java.lang.Integer basketid;
	/**支付限制时长*/
	@Excel(name="支付限制时长",width=15)
	private java.lang.Integer timepass;
	/**订单总额*/
	@Excel(name="订单总额",width=15)
	private java.lang.String totalamount;
	/**状态关联订单状态id*/
	@Excel(name="状态关联订单状态id",width=15)
	private java.lang.String statusbarid;
	private String limit;
	private String offset;
	private byte[] restaurant_image_code;
	private String restaurant_name;
	private StatusbarEntity status_bar;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)

	@Column(name ="ID",nullable=false,length=20)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  主键
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  商户id
	 */

	@Column(name ="RESTAURANTID",nullable=true,length=20)
	public java.lang.Integer getRestaurantid(){
		return this.restaurantid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  商户id
	 */
	public void setRestaurantid(java.lang.Integer restaurantid){
		this.restaurantid = restaurantid;
	}
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  订单关联人id
	 */

	@Column(name ="USERID",nullable=true,length=20)
	public java.lang.Integer getUserid(){
		return this.userid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  订单关联人id
	 */
	public void setUserid(java.lang.Integer userid){
		this.userid = userid;
	}
	
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  创建订单下单时间
	 */

	@Column(name ="CREATEDATE",nullable=true,length=20)
	public java.util.Date getCreatedate(){
		return this.createdate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  创建订单下单时间
	 */
	public void setCreatedate(java.util.Date createdate){
		this.createdate = createdate;
	}
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  订单详情id
	 */

	@Column(name ="BASKETID",nullable=true,length=20)
	public java.lang.Integer getBasketid(){
		return this.basketid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  订单详情id
	 */
	public void setBasketid(java.lang.Integer basketid){
		this.basketid = basketid;
	}
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  支付限制时长
	 */

	@Column(name ="TIMEPASS",nullable=true,length=10)
	public java.lang.Integer getTimepass(){
		return this.timepass;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  支付限制时长
	 */
	public void setTimepass(java.lang.Integer timepass){
		this.timepass = timepass;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  订单总额
	 */

	@Column(name ="TOTALAMOUNT",nullable=true,length=50)
	public java.lang.String getTotalamount(){
		return this.totalamount;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  订单总额
	 */
	public void setTotalamount(java.lang.String totalamount){
		this.totalamount = totalamount;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  状态关联订单状态id
	 */

	@Column(name ="STATUSBARID",nullable=true,length=32)
	public java.lang.String getStatusbarid(){
		return this.statusbarid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  状态关联订单状态id
	 */
	public void setStatusbarid(java.lang.String statusbarid){
		this.statusbarid = statusbarid;
	}

	@Transient
	public String getLimit() {
		return limit;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	@Transient
	public String getOffset() {
		return offset;
	}

	public void setOffset(String offset) {
		this.offset = offset;
	}

	@Transient
	public byte[] getRestaurant_image_code() {
		return restaurant_image_code;
	}

	public void setRestaurant_image_code(byte[] restaurant_image_code) {
		this.restaurant_image_code = restaurant_image_code;
	}

	@Transient
	public String getRestaurant_name() {
		return restaurant_name;
	}

	public void setRestaurant_name(String restaurant_name) {
		this.restaurant_name = restaurant_name;
	}

	@Transient
	public StatusbarEntity getStatus_bar() {
		return status_bar;
	}

	public void setStatus_bar(StatusbarEntity status_bar) {
		this.status_bar = status_bar;
	}
	
	
	
}
